package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Commodity;
import cn.wolfcode.trip.base.query.QueryObject;
import java.util.List;

public interface CommodityMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Commodity record);

    Commodity selectByPrimaryKey(Long id);

    List<Commodity> selectAll();

    int updateByPrimaryKey(Commodity record);

    List<Commodity> queryForList(QueryObject qo);

    void updateSalesVolume(Commodity commodity);

    List<Commodity> getFormsByUserId(Long userId);
}